//reducer.ts
import { combineReducers } from "redux"
import countReducer from "./count"
import userReducer from "@/store/user";
import {IInitUSerState} from "@/store/user/types";
import {IInitCountState} from "@/store/count/types";

export interface IRootReducer {   //合并reducer之后，state的类型
    countReducer: IInitCountState,
    userReducer: IInitUSerState
}

const rootReducer =  combineReducers<IRootReducer>({
    countReducer,userReducer
})

export default rootReducer
